<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>${pageInfo.title!}</title>
    <link rel="stylesheet" href="/plugins/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/css/global.css" media="all">
    <link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css">
    <link rel="stylesheet" href="/css/begtable.css" />
    <script type="text/javascript" src="/js/jquery/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="/plugins/layui/layui.js"></script>
    <script type="text/javascript" src="/plugins/layer/layer.js"></script>
    <script type="text/javascript" src="/js/custom_common.js"></script>
    <script>

        layui.config({
            base: '/js/'
        });

        layui.use(['form', 'layedit', 'laydate','upload'], function() {
            var form = layui.form(),
                    layer = layui.layer,
                    layedit = layui.layedit,
                    laydate = layui.laydate;
//            layui.upload({
//                url:'/goat/uploadpic.json',
//                unwrap:true,
//                success:function (data) {
//                    if (data.result === "success") {
//                        url = data.data;
//
//                    } else {
//                        layui.layer.msg("接口失败");
//                    }
//                }
//            });

        });
        $(".beg-table-box").height($(window).height() - 180);
        $(window).on('resize', function(){
            $(".beg-table-box").height($(window).height() - 180);
        });

        //页面方法
        <#if pageInfo.pageFunctions??>
            <#list pageInfo.pageFunctions as fun>
            function fun_${fun.functionId}(){
                <#if fun.type == 1>
                    //弹窗
                    layer.open({
                        type: 2,
                        title:false,
                        shadeClose: false,
                        shade: [0.3, '#000'],
                        maxmin: true, //开启最大化最小化按钮
                        //offset: '100px',
                        area: ['900px' , '400px'],
                        content: "${fun.redirectTo}"
                    });
                <#else>
                    //js
                ${fun.jsScript!}
                </#if>
            }
            </#list>
        </#if>

    </script>
</head>

<body>
${pageInfo.html!}

</body>

</html>